home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 26 / CU Amiga Magazine's Super CD-ROM 26 (1998)(EMAP Images)(GB)[!][issue 1998-09].iso / CUCD / Utilities / msql-2.0.4.1 / makegen / directory.mm next >
Text File  |  1998-06-20  |  350b  |  18 lines

  1. #!/bin/sh
  2.  
  3. . $MACRO_DIR/makegen/makegen.cf
  4.  
  5. DIR=$1
  6. TARGETS=`echo $2 | sed "s/,/ /g"`
  7.  
  8. for targ in $TARGETS
  9. do
  10.     echo "$targ ::"
  11.     echo "    @echo                    ;\\"
  12.     echo "    echo \"--> [$DIR] directory  \"            ;\\"
  13.     echo "    cd $DIR                                ;\\"
  14.     echo "    \$(MAKE) \$(MFLAGS)    $targ            ;\\"
  15.     echo "    echo \"<-- [$DIR] done       \"        "
  16.     echo ""
  17. done
  18.